package com.sevennotes.classtable.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

@Entity(tableName = "student_items")
data class StudentItem(
    @PrimaryKey(autoGenerate = true) var id: Int? = null,
    @ColumnInfo var name: String = "",
    @ColumnInfo var color: Int? = null,
    @ColumnInfo(name = "grade_point") var gradePoint: Int = 0,
    @ColumnInfo(name = "class_amount") var classAmount: Int = 0,
    @ColumnInfo(name = "note") var note: String = "",
    @ColumnInfo(name = "usable") var usable: Boolean = true,
) : Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}

data class StudentInfo(
    var studentItem: StudentItem,
    var classes: List<ClassItem> = emptyList()
)